/*滚动条样式*/
div::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 5px !important;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 5px !important;
}

div::-webkit-scrollbar-thumb {
  /* 滚动条里面小方块 */
  background: #eee !important;
}

div::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  background: #fff !important;
}

/*滚动条样式*/
html::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 7px !important;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 7px !important;
}

html::-webkit-scrollbar-thumb {
  /* 滚动条里面小方块 */
  background: #b6b6b6 !important;
}

html::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  background: #fff !important;
}

html,body {
  padding: 0;
  margin: 0;
  & * {
    transition: background-color .25s,box-shadow .25s;
  }
}

a,
a:active,
a:hover,
a:visited,
a:link {
  text-decoration: none;
  cursor: pointer;
  color: var(--color-primary);
}

.content-box {
  padding: 0;
  width: calc(100% - 150px);
  .demo-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--config-color-text);
  }

  .demo-introduction {
    font-size: 14px;
    color: var(--config-color-text-introduction);
    margin: 10px 0;
  }

  .demo-tip {
    padding: 8px 16px;
    background-color: var(--config-color-tip);
    border-radius: 4px;
    margin: 20px 0;
    p {
      font-size: 14px;
      color: var(--config-color-text);
      margin: 10px 0;
    }
  }

  .demo-table-title {
    margin: 55px 0 20px;
    font-weight: 400;
    color: var(--config-color-text);
  }

  .demo-table-introduction {
    font-size: 14px;
    color: var(--config-color-text-introduction);
    margin: 10px 0 20px;
  }

  .demo-code-block {
    line-height: 1.8;
    font-family: Menlo, Monaco, Consolas, Courier, monospace;
    font-size: 12px;
    padding: 18px 24px;
    background-color: var(--config-color-code);
    border: 1px solid var(--config-color-code-border);
    color: var(--config-color-text);
    margin-bottom: 25px;
    border-radius: 4px;
    -webkit-font-smoothing: auto;
  }
  .whiteCode {
    padding: 0 24px;
    pre {
      margin: 0;
    }
    .hljs {
      font-size: 12px;
      background-color: transparent;
      color: var(--config-color-text);
      padding: 0!important;
    }
  }

  .demo-code-en-p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--config-color-text);
  }

  .demo-code-cn-p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(64, 64, 64, 0.6);
  }
}

.hljs {
  padding: 18px 24px 0 !important;
  line-height: 1.8;
  font-size: 14px;
  font-family: Menlo, Monaco, Consolas, Courier, monospace;
  &:nth-of-type(1) {
    padding-top: 0!important;
  }
}
// 展开收起动画
.collapse-transition {
  -webkit-transition: .3s height ease-in-out, .3s padding-top ease-in-out, .3s padding-bottom ease-in-out;
  transition: .3s height ease-in-out, .3s padding-top ease-in-out, .3s padding-bottom ease-in-out
}